package com.nsgf.library.data.bean;

import com.nsgf.library.utils.StringUtil;

import java.io.Serializable;
import java.util.List;

public class WorkOrderBean implements Serializable {

    /**
     * orderCode : JCJC20240920103610419977
     * workOrderSource : 1
     * taskName : app任务测试
     * startTime : 2024-09-20 00:00:00
     * endTime : null
     */

    private String orderCode;
    private int workOrderSource;
    private String taskName;
    private String startTime;
    private String endTime;
    private int isResponsibleBy;
    private int isComplete;
    private String reportDate;
    private String place;

    public String getPlace() {
        return place;
    }

    public void setPlace(String place) {
        this.place = place;
    }

    public String getProblemDescription() {
        return problemDescription;
    }

    public void setProblemDescription(String problemDescription) {
        this.problemDescription = problemDescription;
    }

    public String getDisposeType() {
        return disposeType;
    }

    public void setDisposeType(String disposeType) {
        this.disposeType = disposeType;
    }

    public String getDisposeDescription() {
        return disposeDescription;
    }

    public void setDisposeDescription(String disposeDescription) {
        this.disposeDescription = disposeDescription;
    }

    private String problemDescription;
    private String disposeType;
    private String disposeDescription;
    private List<WorkOrderDetailBean.FileDto> imageUrls;

    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public int getWorkOrderSource() {
        return workOrderSource;
    }

    public String getWorkOrderSourceSrc() {
        switch (workOrderSource) {
            case 1:
                return "工程巡查";
            case 2:
                return "任务计划";
            case 3:
                return "异常问题";
            case 4:
                return "险情上报";
            case 5:
                return "违法行为上报";
            case 6:
                return "设备巡检";
            default:
                return "";
        }
    }

    public void setWorkOrderSource(int workOrderSource) {
        this.workOrderSource = workOrderSource;
    }

    public String getTaskName() {
        return taskName;
    }

    public String getTaskNameSrc() {
        return "任务名称：" + taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public String getStartTimeSrc() {
        return "开始时间：" + startTime;
    }

    public String getStartTime() {
        return startTime;
    }

    public String getStartTimeOrEndTime() {
        return "起止时间：" + startTime + "~" + getEndTime();
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return StringUtil.isEmpty(endTime) ? "" : endTime;
    }

    public String getEndTimeSrc() {
        return "结束时间：" + getEndTime();
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public int getIsResponsibleBy() {
        return isResponsibleBy;
    }

    public void setIsResponsibleBy(int isResponsibleBy) {
        this.isResponsibleBy = isResponsibleBy;
    }

    public int getIsComplete() {
        return isComplete;
    }

    public void setIsComplete(int isComplete) {
        this.isComplete = isComplete;
    }

    public String getReportDate() {
        return reportDate;
    }

    public void setReportDate(String reportDate) {
        this.reportDate = reportDate;
    }

    public List<WorkOrderDetailBean.FileDto> getImageUrls() {
        return imageUrls;
    }

    public void setImageUrls(List<WorkOrderDetailBean.FileDto> imageUrls) {
        this.imageUrls = imageUrls;
    }

}
